package com.stone.business.jc.pojo;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.stone.utils.DateFormatTool;

/**
 * 调休管理
 */
@Entity
@Table(name = "TAB_TX")
public class TTx implements java.io.Serializable {

	private Long id;

	/**
	 * 人员id
	 */
	private Long userid;
	/**
	 * 班组id
	 */
	private Long organid;
	/**
	 * 调休开始日期
	 */
	private Date ksrq;
	private String strKsrq;
	/**
	 * 调休结束日期
	 */
	private Date jsrq;
	/**
	 * 请假天数
	 */
	private String qjts;
	
	/**
	 * 路途
	 */
	private String lut;
	/**
	 * 事由
	 */
	private String sy;
	/**
	 * 假别
	 */
	private String jb;
	/**
	 * 备注
	 */
	private String bz;
	
	/**
	 * 班长审核
	 */
	private String bzname;
	/**
	 * 审核日期
	 */
	private Date shrq;
	/**
	 * 车间审核
	 */
	private String cjname;
	/**
	 * 批准日期
	 */
	private Date pzrq;
	
    @Id
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SEQ_TX")
    @SequenceGenerator(name="SEQ_TX",allocationSize=1, sequenceName="SEQ_TX")
    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

	public Long getUserid() {
		return userid;
	}

	public void setUserid(Long userid) {
		this.userid = userid;
	}

	public Date getKsrq() {
		return ksrq;
	}

	public void setKsrq(Date ksrq) {
		this.ksrq = ksrq;
	}

	
	@Transient
	public String getStrKsrq() {
		return strKsrq;
	}

	public void setStrKsrq(String strKsrq) {
		this.strKsrq = strKsrq;
		this.ksrq = DateFormatTool.formatToDate(strKsrq,"yyyy-MM-dd");
	}

	public String getLut() {
		return lut;
	}

	public void setLut(String lut) {
		this.lut = lut;
	}

	public String getSy() {
		return sy;
	}

	public void setSy(String sy) {
		this.sy = sy;
	}

	public String getBz() {
		return bz;
	}

	public void setBz(String bz) {
		this.bz = bz;
	}

	public String getBzname() {
		return bzname;
	}

	public void setBzname(String bzname) {
		this.bzname = bzname;
	}

	public Date getShrq() {
		return shrq;
	}

	public void setShrq(Date shrq) {
		this.shrq = shrq;
	}

	public String getCjname() {
		return cjname;
	}

	public void setCjname(String cjname) {
		this.cjname = cjname;
	}

	public Date getPzrq() {
		return pzrq;
	}

	public void setPzrq(Date pzrq) {
		this.pzrq = pzrq;
	}

	public Date getJsrq() {
		return jsrq;
	}

	public void setJsrq(Date jsrq) {
		this.jsrq = jsrq;
	}

	public String getQjts() {
		return qjts;
	}

	public void setQjts(String qjts) {
		this.qjts = qjts;
	}

	public String getJb() {
		return jb;
	}

	public void setJb(String jb) {
		this.jb = jb;
	}

	public Long getOrganid() {
		return organid;
	}

	public void setOrganid(Long organid) {
		this.organid = organid;
	}

	
	
	

}